(function(exports){ 
    
    function PageDesignerScriptGetter(){}    
    
    //---------------------------------------------------------------------------
    
    PageDesignerScriptGetter.prototype.getScript = function(resConfig){
        return [
            //page desinger.
            'PageDesigner.js',
            
            'node/Node.js',                
            'node/NodeEditor.js',
            'node/NodeOptionView.js',
                    
            'layout/Layout.js',
            'layout/FulidLayout.js',
            'layout/VerticalLayout.js',
            'layout/FormLayout.js',
            'layout/PageLayout.js',        
            'layout/Page.js',
            
            'element/Element.js',
            'element/ButtonElement.js',
            'element/CheckboxElement.js',
            'element/RadioListElement.js',
            'element/ImageElement.js',
            'element/LabelElement.js',
            'element/DescriptionElement.js',
            'element/InputElement.js',
            
            'element/composite/CompositeElement.js',
            'element/composite/CheckboxListCompositeElement.js',     
            'element/composite/FormFieldCompositeElement.js',
            'element/composite/QuestionCompositeElement.js'
        ];
    };
    
    //---------------------------------------------------------------------------
       
    exports.getResPath = function(resConfig){        
        var scriptGetter = new PageDesignerScriptGetter();        
        return scriptGetter.getScript(resConfig || {});
    };
})(typeof exports !== "undefined" ? exports : this.ujs);